-- GENERATED SPELL FOR [Coilfang Observer] --


function spell0_17938(pUnit, Event) --@Heavy Dynamite,n/a--
pUnit:FullCastSpellOnTarget(32191,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17938', 661, 1)
end

function spell1_17938(pUnit, Event) --@Heavy Dynamite,n/a--
pUnit:FullCastSpellOnTarget(37666,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17938', 545, 1)
end

function spell2_17938(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(17883,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17938', 23000, 1)
end

function spell3_17938(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(37668,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17938', 23000, 1)
end

function Sorts_17938(pUnit, Event)
local choix_sorts_17938 = math.random(0, 3)
if choix_sorts_17938 == 0 then
pUnit:RegisterEvent('spell0_17938', 1, 1)
end
if choix_sorts_17938 == 1 then
pUnit:RegisterEvent('spell1_17938', 1, 1)
end
if choix_sorts_17938 == 2 then
pUnit:RegisterEvent('spell2_17938', 1, 1)
end
if choix_sorts_17938 == 3 then
pUnit:RegisterEvent('spell3_17938', 1, 1)
end
end

function mob17938_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17938', math.random(1500, 3000), 1)
end

function mob17938_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17938_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17938_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17938, 1, 'mob17938_Action')
RegisterUnitEvent(17938, 2, 'mob17938_Leave')
RegisterUnitEvent(17938, 3, 'mob17938_Kill')
RegisterUnitEvent(17938, 4, 'mob17938_Die')
